Changing the Color Environment
The colors available in any particular hardware environment depend on the
color or black-and-white settings and the pixel depths that the attached cards
and screens can support, and on what they are set to by the system or by the
user.
Since your palette may define more colors than the available hardware can
understand the allocation process. Prioritization is important only when the
yourself after changing one or more of the palette's colors or usage categories.)
for explicit usage. Colors that are marked as tolerant and explicit are allocated
next.
entry in your window's palette (entry 0), the Palette Manager checks to see if it is an animated entry. It checks each animated entry to see that the entry
has a reserved index for each appropriate device, selecting and reserving an
index if it does not. This process continues until all animated colors have been
satisfied or until the available indices are exhausted.
color an index until all tolerant colors have been satisfied. The
desired color and the color associated with the selected index. If the difference
marks the selected device entry to be changed to the desired color.
Since explicit colors designate index values, not the colors at those index
locations, and since courteous colors are amenable to being assigned any RGB
value, neither is considered during prioritization.
entries as possible, it checks to see if the current CLUT is adequate. If
Color Manager to change the device's color environment accordingly (with Finally, if the color environment on a given device has changed, the
checks that window to see if it specifies an update in the case of such changes.
procedure to specify whether a window should be updated when its environment
has been changed because of actions by another window. (If so, the InvalRect procedure, described in the
Window Manager, updates the window, using the boundary rectangle of the device that has been changed.)